package com.cjx.springcloud.service.Impl;

import com.cjx.springcloud.entities.Payment;
import com.cjx.springcloud.mapper.PaymentMapper;
import com.cjx.springcloud.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author cjx
 * @date 2021/4/6 0006 - 21:50
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentMapper paymentMapper;

    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    public Payment getPaymentByid(@Param("id") Long id) {
        return paymentMapper.getPaymentByid(id);
    }


}
